package com.tom.zojbackendquestionservice.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tom.zojbackendmodel.model.dto.questionSubmit.QuestionSubmitAddRequest;
import com.tom.zojbackendmodel.model.dto.questionSubmit.QuestionSubmitQueryRequest;
import com.tom.zojbackendmodel.model.entity.QuestionSubmit;
import com.tom.zojbackendmodel.model.entity.User;
import com.tom.zojbackendmodel.model.vo.QuestionSubmitVO;

/**

* @description 针对表【question_submit(题目提交)】的数据库操作Service

*/
public interface QuestionSubmitService extends IService<QuestionSubmit> {
   /**
    * 点赞
    *
    * @param questionSubmitAddRequest
    * @param loginUser
    * @return
    */
   Long doQuestionSubmit(QuestionSubmitAddRequest questionSubmitAddRequest, User loginUser);
   /**
    * 获取查询条件
    *
    * @param questionSubmitQueryRequest
    * @return
    */
   QueryWrapper<QuestionSubmit> getQueryWrapper(QuestionSubmitQueryRequest questionSubmitQueryRequest);

   /**
    * 获取题目封装
    *
    * @param questionSubmit
    * @param loginUser
    * @return
    */
   QuestionSubmitVO getQuestionSubmitVO(QuestionSubmit questionSubmit, User loginUser);

   /**
    * 分页获取题目封装
    *
    * @param questionSubmitPage
    * @param loginUser
    * @return
    */
   Page<QuestionSubmitVO> getQuestionSubmitVOPage(Page<QuestionSubmit> questionSubmitPage, User loginUser);




}
